package com.bjzsly.star3.xzb.base;


public abstract class SubscriberCallBack<T> extends BaseCallBack<ResultResponse<T>> {


    @Override
    public void onNext(ResultResponse response) {

        if (response.code.equals("0")) {
            onSuccess((T) response.data);
        } else {
//            ToastUtils.showToast(response.msg);
            onFailure(response);
        }
    }

    protected abstract void onSuccess(T response);
}
